package com.book_management.response;

import com.book_management.component.ErrorCode;
import lombok.Data;





/**
 * @ClassName BaseResponse
 * @Description TODO
 * @Author XiangQian
 * @Date 2022/7/7 16:41
 */

@Data
public class BaseResponse implements Response {

    String code = SUCCESS_CODE;
    String message;
    public BaseResponse(){

    }
    public BaseResponse(ErrorCode errorCode) {
        this.code = errorCode.getCode();
        this.message = errorCode.getMessage();
    }
}